home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / CustomWriterGX / OldApp.a < prev    next >
Encoding:
Text File  |  1996-03-20  |  2.3 KB  |  71 lines  |  [TEXT/MPS ]

  1. ;------------------------------------------------------------------------------
  2. ;
  3. ;    FILENAME
  4. ;        OldApp.a
  5. ;
  6. ;    DESCRIPTION
  7. ;        Contains the jump table for the old-application compatibility
  8. ;        messages we override.
  9. ;
  10. ;    COPYRIGHT
  11. ;        Copyright © 1995 Apple Computer, Inc.
  12. ;        All rights reserved.
  13. ;    
  14. ;    Modification history
  15. ;        10/04/95 - David Hayward -    Version 1.0.4 modified code so that
  16. ;                                    the driver can be build under MPW,
  17. ;                                    Metrowerks, and Symantec.  In general,
  18. ;                                    all that was required to do this was 
  19. ;                                    to add an inline-assembly jumptable
  20. ;                                    and to store all globals off of the
  21. ;                                    message manager instance context.
  22. ;                                    Also made a few changes so that the
  23. ;                                    driver can be rebuilt to support any
  24. ;                                    resolution by changing the #defines
  25. ;                                    kResolution and kPatStretch in
  26. ;                                    "CommonDefines.h"
  27. ;
  28. ;        06/14/95 - Dave Hersey -    Version 1.0.3 to fix a bug in
  29. ;                                    CustomBufferingAndIO.c when creating
  30. ;                                    high-res PICTs, and to make the size
  31. ;                                    of buffers more flexible.
  32. ;
  33. ;        05/26/95 - Dave Hersey -    Version 1.0.2 to add the new 'outp'
  34. ;                                    desktop printer resource in NewApp.c.
  35. ;
  36. ;        05/03/95 - Dave Hersey -    Version 1.0.1 to fix some minor bugs in
  37. ;                                    CustomBufferingAndIO.c.
  38. ;
  39. ;        01/14/95 - Dave Hersey -    Created from the shell of a hollowed-out
  40. ;                                    ImageWriter driver.
  41. ;
  42. ;--------------------------------------------------------------------------------
  43.  
  44.                 CASE     OBJ
  45.                 STRING    ASIS
  46.  
  47.     EXPORT    SD_JumpTable
  48.     IMPORT    SD_ConvertPrintRecordTo        ; Our override for GXConvertPrintRecordTo.
  49.     IMPORT    SD_ConvertPrintRecordFrom    ; Our override for GXConvertPrintRecordFrom.
  50.     IMPORT    SD_PrValidate                ; Our override for GXPrValidate.
  51.     
  52. ;--------------------------------------------------------------------------------
  53. ;    This code must be kept in sync with the assembly jump table
  54. ;    in OldApp.c and the gxOverrideType resource in OldApp.r
  55. ;--------------------------------------------------------------------------------
  56.  
  57. SD_JumpTable    PROC                    ; Our main entry point.
  58.     
  59.             DC.L    0                    ; Reserved for owner count.
  60.  
  61.             JMP        SD_ConvertPrintRecordTo        ; (offset =  4)
  62.             JMP        SD_ConvertPrintRecordFrom    ; (offset =  8)
  63.             JMP        SD_PrValidate                ; (offset = 12)
  64.  
  65.             RTS                            ; this is here so that the
  66.                                         ; entrypoint will be labled "Anon0"
  67.  
  68.             ENDPROC
  69.  
  70.     END
  71.